﻿@model Member
@{
    ViewBag.Title = "查看用户信息";
    Layout = "~/Views/Shared/Master.cshtml";
}
@{Html.Telerik().Window().Name("DetailWindow").Title("查看用户信息").HtmlAttributes(new { @class = "ContentWindow" })
    .Buttons(buttons => buttons.Clear())
    .Content(
@<text>
@{using (Ajax.BeginForm<MemberController>(c => c.MemberDetail(null),
    new AjaxOptions { OnBegin = "BeforeSend", OnSuccess = "OnSuccess", OnFailure = "OnError" }))
  {
      <table>
            <tr>
                <th>医院</th>
                <td>
                    @Html.HiddenFor(model => model.ID)
                    @Html.DisplayFor(model => model.Hospital, "Hospital/HospitalRef")
                </td>
            </tr>
            <tr>
                <th>登录名</th>
                <td>@Html.DisplayFor(model => model.LoginName)</td>
            </tr>
            <tr>
                <th>真实姓名</th>
                <td>@Html.DisplayFor(model => model.RealName)</td>
            </tr>
            <tr>
                <th>性别</th>
                <td>@Html.GenderDisplayFor(model => model.Gender)</td>
            </tr>
            <tr>
                <th>电话</th>
                <td>@Html.DisplayFor(model => model.Phone)</td>
            </tr>
            <tr>
                <th>E-mail</th>
                <td>@Html.DisplayFor(model => model.Email)</td>
            </tr>
            <tr>
                <th>用户类型</th>
                <td>@Html.MemberTypeDisplayFor(model => model.Type)</td>
            </tr>
            <tr>
                <th>简介</th>
                <td>@Html.DisplayFor(model => model.Profile)</td>
            </tr>
        </table>
    @(Html.ActionLink<MemberController>("编辑", c => c.MemberEdit(Model.ID)))
  }
}


</text>)
    .Render();
}
